import { _decorator, Component, Node, size, Size, v3, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('BoxController')
export class BoxController extends Component {

    IsNull: boolean = true;

    WeaponPart: Node = null;

    add(target: Node) {
        this.IsNull = false;
        this.WeaponPart = target;
    }

    remove() {
        this.IsNull = true;
        this.WeaponPart = null;
    }
}